#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QGroupBox>
#include <QButtonGroup>
#include <QRadioButton>
#include <QScrollArea>
#include <QFrame>
#include <QLabel>
#include <QGridLayout>
#include <QList>

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget* parent = nullptr);
    ~Widget();

protected:
    bool eventFilter(QObject* obj, QEvent* event) override;

private slots:
    void onRadioButtonClicked();

private:
    QButtonGroup* _buttonGroup;
    QGridLayout* _gridLayout;
    QLabel* _lblRed;
    QLabel* _lblOrange;
    QLabel* _lblYellow;
    QLabel* _lblGreen;
    QLabel* _lblCyan;
    QLabel* _lblBlue;
    QLabel* _lblPurple;
    QList<QLabel*> _lblList;
};
#endif // WIDGET_H
